home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / tut-code.lha / tut-code / box1 / main.c < prev   
C/C++ Source or Header  |  1992-01-02  |  756b  |  30 lines

  1. #include <InterViews/background.h>
  2. #include <InterViews/box.h>
  3. #include <InterViews/character.h>
  4. #include <InterViews/session.h>
  5. #include <InterViews/style.h>
  6. #include <InterViews/window.h>
  7.  
  8. int main(int argc, char** argv) {
  9.     Session* session = new Session("Himom", argc, argv);
  10.     Style* style = session->style();
  11.     const Font* f = style->font();
  12.     const Color* fg = style->foreground();
  13.     session->run_window(
  14.     new ApplicationWindow(
  15.         new Background(
  16.         new LRBox(
  17.             new Character('g', f, fg),
  18.             new Character('o', f, fg),
  19.             new Character('o', f, fg),
  20.             new Character('d', f, fg),
  21.             new Character('b', f, fg),
  22.             new Character('y', f, fg),
  23.             new Character('e', f, fg)
  24.         ),
  25.         style->background()
  26.         )
  27.     )
  28.     );
  29. }
  30.